﻿using AutoMapper;
using tms.Admin_Roles.Dto;
using tms.Admins;
using tms.Admins.Dto;
using tms.ApprovalDetails.Dto;
using tms.Departments.Dto;
using tms.Dics.Dto;
using tms.DicTypes.Dto;
using tms.Employees.Dto;
using tms.EntryApprovals.Dto;
using tms.FlowNodes.Dto;
using tms.Flows.Dto;
using tms.FlowStates.Dto;
using tms.Jobtitles.Dto;
using tms.Menu_Roles.Dto;
using tms.Menus.Dto;
using tms.Roles.Dto;

namespace tms
{
    public class tmsApplicationAutoMapperProfile : Profile
    {
        public tmsApplicationAutoMapperProfile()
        {
            CreateMap<Admin, AdminDto>().ReverseMap();
            CreateMap<Admin, CreateUpdateAdminDto>().ReverseMap();
            CreateMap<Admin, RegisterDto>().ReverseMap();
            CreateMap<Admin_Role, Admin_RoleDto>().ReverseMap();
            CreateMap<Admin_Role, CreateUpdateAdmin_RoleDto>().ReverseMap();
            CreateMap<ApprovalDetail, ApprovalDetailDto>().ReverseMap();
            CreateMap<ApprovalDetail, CreateUpdateApprovalDetailDto>().ReverseMap();
            CreateMap<Department, DepartmentDto>().ReverseMap();
            CreateMap<Department, CreateUpdateDepartmentDto>().ReverseMap();
            CreateMap<Dic, DicDto>().ReverseMap();
            CreateMap<Dic, CreateUpdateDicDto>().ReverseMap();
            CreateMap<DicType, DicTypeDto>().ReverseMap();
            CreateMap<DicType, CreateUpdateDicTypeDto>().ReverseMap();
            CreateMap<Employee, EmployeeDto>().ReverseMap();
            CreateMap<Employee, CreateUpdateEmployeeDto>().ReverseMap();
            CreateMap<EntryApproval, EntryApprovalDto>().ReverseMap();
            CreateMap<EntryApproval, CreateUpdateEntryApprovalDto>().ReverseMap();
            CreateMap<Flow, FlowDto>().ReverseMap();
            CreateMap<Flow, CreateUpdateFlowDto>().ReverseMap();
            CreateMap<FlowNode, FlowNodeDto>().ReverseMap();
            CreateMap<FlowNode, CreateUpdateFlowNodeDto>().ReverseMap();
            CreateMap<FlowState, FlowStateDto>().ReverseMap();
            CreateMap<FlowState, CreateUpdateFlowStateDto>().ReverseMap();
            CreateMap<Jobtitle, JobtitleDto>().ReverseMap();
            CreateMap<Jobtitle, CreateUpdateJobtitleDto>().ReverseMap();
            CreateMap<Menu, MenuDto>().ReverseMap();
            CreateMap<Menu, CreateUpdateMenuDto>().ReverseMap();
            CreateMap<Menu_Role, Menu_RoleDto>().ReverseMap();
            CreateMap<Menu_Role, CreateUpdateMenu_RoleDto>().ReverseMap();
            CreateMap<Role, RoleDto>().ReverseMap();
            CreateMap<Role, CreateUpdateRoleDto>().ReverseMap();
        }
    }
}
